package com.xiaomengkuan.test.dao;

import com.xiaomengkuan.test.entity.pojo.ProductStory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-09 2:58 下午, File Encoding: utf8 --
 */
@Repository
public interface ProductStoryRepository extends JpaRepository<ProductStory,
        Integer> {
    List<ProductStory> findAllByProductId(int productId);
}
